﻿<navigation:Page x:Class="Didsoft.SalesLive.UI.Views.VwRoles" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
            xmlns:Didsoft_Silverlight_Controls="clr-namespace:Didsoft.Silverlight.Controls;assembly=Didsoft.Silverlight.Controls" 
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
           d:DesignWidth="640" d:DesignHeight="480"
           Title="VwRoles Page">

        <Grid x:Name="LayoutRoot">
            <Didsoft_Silverlight_Controls:FormHeader Margin="0,0,0,0" TitleText="Gestionar Roles" DescriptionText="Gestiona Roles CRUD">
                <Grid>
                <TextBlock HorizontalAlignment="Left" Height="18" Margin="6,13,0,0" TextWrapping="Wrap" Text="Nombre Rol :" VerticalAlignment="Top" Width="96"/>
                    <TextBlock HorizontalAlignment="Left" Height="18" Margin="6,39,0,0" TextWrapping="Wrap" Text="Descripcion :" VerticalAlignment="Top" Width="96"/>
                <TextBox Height="25" Margin="131,6,237,0" TextWrapping="Wrap" Text="{Binding Rol.NombreTipo, Mode=TwoWay}" VerticalAlignment="Top" d:LayoutOverrides="HorizontalAlignment"/>
                    <PasswordBox Height="25" Margin="131,35,237,0" VerticalAlignment="Top" Password="{Binding Rol.Descripcion, Mode=TwoWay}"/>
                <sdk:DataGrid Margin="9,134,8,28" AutoGenerateColumns="True" ItemsSource="{Binding Roles, Mode=TwoWay}" SelectedItem="{Binding Rol, Mode=TwoWay}"/>
                    <Button Content="Nuevo" HorizontalAlignment="Left" Height="28" Margin="18,100,0,0" VerticalAlignment="Top" Width="101" Command="{Binding CmdNuevo, Mode=TwoWay}"/>
                    <Button Content="Guardar" HorizontalAlignment="Left" Height="28" Margin="131,100,0,0" VerticalAlignment="Top" Width="101" Command="{Binding CmdGuardar, Mode=TwoWay}"/>
                    <Button Content="Eliminar" Height="28" Margin="247,100,0,0" VerticalAlignment="Top" Command="{Binding CmdEliminar, Mode=TwoWay}" HorizontalAlignment="Left" Width="101"/>
                <CheckBox Content="Predeterminado" Height="16" HorizontalAlignment="Left" Margin="131,68,0,0" Name="checkBox1" IsChecked="{Binding Rol.Predeterminado, Mode=TwoWay}" VerticalAlignment="Top" Width="146" />
            </Grid>
            </Didsoft_Silverlight_Controls:FormHeader>

        </Grid>

</navigation:Page>
